package com.zhejiangzhengyuan.municipal_common.entity.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author lin_ju
 * Create on 2019/12/3
 */

@ApiModel("新建养护表单封装")
@Data
public class MaintenanceManageDto {

    @ApiModelProperty(value = "自增主键")
    @TableId(value = "id",type = IdType.AUTO)
    @ExcelProperty(value = "自增主键")
    private Long id;

    @ApiModelProperty(value = "受养护目标是对道路或桥梁的关联，存放道路或者桥梁的CODE")
    @ExcelProperty(value = "巡检受养护目标是对道路或桥梁的关联区域")
    private String targetId;

    @ApiModelProperty(value = "养护缘由简短说明")
    @ExcelProperty(value = "养护缘由简短说明")
    private String reason;

    @ExcelProperty(value = "养护缘由具体描述")
    @ApiModelProperty(value = "养护缘由具体描述")
    private String eventContext;

    @ExcelProperty(value = "养护结果描述")
    @ApiModelProperty(value = "养护结果描述")
    private String result;

    @ExcelProperty(value = "养护开始时间")
    @ApiModelProperty(value = "养护开始时间")
    private Timestamp startTime;

    @ExcelProperty(value = "养护结束时间")
    @ApiModelProperty(value = "养护结束时间")
    private Timestamp endTime;

    @ApiModelProperty(value = "记录创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "记录更新时间")
    private Timestamp updateTime;

    @ExcelProperty(value = "上报人")
    @ApiModelProperty(value = "上报人，养护表，为用户表外键")
    private String  username;

    @ExcelProperty(value = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ExcelProperty(value = "养护单位")
    @ApiModelProperty(value = "养护单位")
    private String maintenanceUnit;

    @ApiModelProperty(value = "需要删除的文件集合")
    private String linkList;




}
